<?php

declare(strict_types=1);

namespace App\Model;


/**
 * @property int $id ID
 * @property string $team_id ID
 * @property string $name 全称
 * @property string $short_name 简称
 * @property string $logo 标志
 * @property string $slug SLUG
 * @property int $sport_id 运动类型ID
 * @property string $season_id 赛季ID(target)
 * @property int $stats 状态
 * @property int $is_group 是否为组合
 * @property string $groups 组合队伍
 * @property string $member_ids 组合球队id串
 * @property int $add_time 添加时间
 */
class Team extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'team';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'team_id', 'name', 'short_name', 'logo', 'slug', 'sport_id', 'season_id', 'stats', 'is_group', 'groups', 'member_ids', 'add_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'sport_id' => 'integer', 'stats' => 'integer', 'is_group' => 'integer', 'add_time' => 'integer'];
}
